package com.grass.cropTradingCenter.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName shipping_address
 */
@TableName(value ="shipping_address")
@Data
public class ShippingAddress implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 收货人姓名
     */
    @TableField(value = "address_name")
    private String addressName;

    /**
     * 收货人手机号
     */
    @TableField(value = "address_phone")
    private String addressPhone;

    /**
     * 地址编号
     */
    @TableField(value = "address_region_index")
    private String addressRegionIndex;

    /**
     * 地区字符串
     */
    @TableField(value = "address_region_str")
    private String addressRegionStr;

    /**
     * 详细地址
     */
    @TableField(value = "address_detail")
    private String addressDetail;

    /**
     * 1--默认收货地址  0--普通地址
     */
    @TableField(value = "is_main")
    private Integer isMain;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}